<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="com.hackvan2012.datastore.dao.FoodEntryObject" %>
<%@ page import="java.util.List" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Viewing post</title>
<style type="text/css">
#main {
	width:1000px;
}
</style>
</head>
<body>
sucess
<div id="viewEntry">
	<%FoodEntryObject foodEntry =(FoodEntryObject)request.getAttribute("foodEntry");%>
		<div class="post_entry">
			<div id="title"><c:out value="${foodEntry.title}"/></div>
			<div id="dish"><c:out value="${foodEntry.name}"/></div>
			<div id="restaurant"><c:out value="${foodEntry.title}"/></div>
			<div class="image"><img src="${foodEntry.imgURL}" alt="" /></div>
			<div id="description"><c:out value="${foodEntry.description}"/></div>
			<div id="date"><c:out value="${foodEntry.date}"/></div>
			<div id="vote"><c:out value="${foodEntry.vote}"/></div>
	  </div>
	
	
	<%--
	for (PostObject postedComment : (List<PostObject>) request.getAttribute("comments")) { --%>
	<div class="comment">
		<div class="text"><c:out value="${postedComment.text}"/></div>
		<div class="date"><c:out value="${postedComment.date}"/></div>
	</div>
	<div></div>
	<%-- }
	 --%>
		
		
<!-- </div> -->
</body>
</html>